<?php
echo "<h3>".Araclar::yaz('Kayıt Ol','Register').'</h3>';

 echo Araclar::yaz("Buraya girmiş olduğunuz bilgiler isminiz deşifre edilerek hiç kimseyle paylaşılmayacaktır. Bu bilgiler sadece araştırma amaçlı kullanılacaktır.",
			"The information you write here will not be shared. It will be used for research only."); 

 
 ?>
<br /><br />
<?php
if(!empty($uyari)){
	echo "<font color='red'>$uyari</font>";
	echo "<br /><br />";
}
if(!empty($uyari_iyi)){
	echo "<font color='#09bb33'>$uyari_iyi</font>";
	echo "<br /><br />";
}

?>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'kullanicilar-kisisel-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>
	<table width='100%'>
		<tr>
			<td width="220"><?php echo Araclar::yaz("Kullanıcı Adı","Username"); ?>: </td>
			<td>
				<?php echo $form->textField($model,'kullanici_adi'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Adınız","First Name"); ?>: </td>
			<td>
				<?php echo $form->textField($model,'ad'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Soyadınız","Last Name"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'soyad'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Yaşınız","Age"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'yas',array('size'=>'5')); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Cinsiyetiniz","Gender"); ?>:</td>
			<td>
				<?php echo $form->dropDownList($model,'cinsiyet',
									Cinsiyet::diziGetir()										
								); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Şifreniz","Password"); ?>:</td>
			<td>
				<?php echo $form->passwordField($model,'sifre1'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Şifreniz Tekrar","Password Again"); ?>:</td>
			<td>
				<?php echo $form->passwordField($model,'sifre2'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Eğitim Durumunuz","Educational Background"); ?>:</td>
			<td>
				<?php echo $form->dropDownList($model,'egitim_durumu',
									EgitimDurumu::diziGetir()										
								); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("E-posta adresiniz","E-Mail"); ?>: </td>
			<td>
				<?php echo $form->textField($model,'eposta'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Cep Telefonu","Cell Phone Number"); ?>: </td>
			<td>
				<?php echo $form->textField($model,'cep_tel'); 
					echo "<br />";
					echo Araclar::yaz("Lütfen cep telefonu numaranızı 05552223030 formatında aralarına boşluk koymadan giriniz. ","Please enter the phone number as in the format like 905552223030 (90 country code, and number without any space in it.")
				?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Şehir","City"); ?>: </td>
			<td>
				<?php
					$iller = Iller::model()->findAll();
					echo $form->dropDownList($model,'il_id',CHtml::listData($iller, 'id', 'il')); 
				?>
			</td>
		</tr>		<tr>
			<td colspan="2" bgcolor="#d2dbe3" height="40"><font color="#1980be"><big><?php echo Araclar::yaz("Öğretim yapacağınız kişi ile ilgili bilgiler","Info about Your Son/Daughter"); ?></big></font></td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Adı","First Name"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'cocuk_ad'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Soyadı","Last Name"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'cocuk_soyad'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Yakınlık Durumunuz (Anne, Baba, Kardeş, vb.)","Relationship"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'cocuk_yakinlik'); ?>
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Yaşı","Age"); ?>:</td>
			<td>
				<?php echo $form->textField($model,'cocuk_yas',array('size'=>'5')); ?>
			</td>
		</tr>

		<tr>
			<td><?php echo Araclar::yaz("Cinsiyeti","Gender"); ?>:</td>
			<td>
				<?php echo $form->dropDownList($model,'cocuk_cinsiyet',
									Cinsiyet::diziGetir()										
								); ?>			
			</td>
		</tr>
		<tr>
			<td><?php echo Araclar::yaz("Engellilik Durumu","Level of Disability"); ?>:</td>
			<td>
				<?php echo $form->textArea($model,'cocuk_engellilik_durumu',array('cols'=>'50','rows'=>'2')); ?>
			</td>
		</tr>
	</table>


	<div class="row buttons" align="center">
		<?php echo CHtml::submitButton(Araclar::yaz('Kaydet','Save'),array('class'=>'button kaydet')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
